

function once() {
    let flag = false
    return function (...args) {
        if (flag === false) {
            console.log(...args)
            flag = true
        }
    }
}
let onc = new once()
onc(1)
onc(1)
onc(1)
